package cn.meye11.crm.mapper;

import cn.meye11.crm.domain.entity.CostEntity;
import cn.meye11.crm.domain.query.CostQuery;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
/**
 * (Cost)表数据库访问层
 * 
 * @author makejava
 * @since 2024-01-03 14:41:34
 */
@Repository
public interface CostMapper extends Mapper<CostEntity> {

    @SelectProvider(type = CostProvider.class, method = "list")
    List<CostEntity> list(CostQuery query);
    
    @SelectProvider(type = CostProvider.class, method = "count")
    Long count(CostQuery query);
}
